#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int k = 0;
    scanf("%d", &k);
    printf("year=%d\nmonth=%02d\ndate=%02d\n", k / 10000, (k % 10000) / 100, k % 100);
    return 0;
}